package com.yodawnla.littleWar.map;

import java.util.ArrayList;

public class Area
{
	ArrayList<Location> mLocations = new ArrayList<Location>();
	
	public void addLocation(Location location)
	{
		mLocations.add(location);
	}
	
	public boolean canActivate()
	{
		boolean result = true;
		
		int owner = mLocations.get(0).getOwner();
		for (int i = 1 ; i < mLocations.size() ; ++i)
		{
			if (owner != mLocations.get(i).getOwner())
			{
				result = false;
				break;
			}
		}
		
		return result;
	}
}
